<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动布局练习</title>
    <style>
        .f1,.f2 {
            width: 1000px;
            margin: 0 auto;
        }
        .f1>.left{
            float: left;
            width: 611px;
            height: 376px;
            background-color: gray;
            margin-right: 10px;
            margin-bottom: 10px;
            border: black solid 1px;
        }
        .f1>.right{
            float: left;
            width: 375px;
            height: 376px;
            background-color: yellow;
            margin-bottom: 10px;
            border: black solid 1px;
        }
        .f2>.left{
            float: left;
            width: 366px;
            height: 233px;
            background-color: pink;
            margin-right: 20px;
            border: black solid 1px;
        }
        .f2>.card{
            float: left;
            width: 197px;
            height: 233px;
            background-color: #0aa1ed;
            margin-right: 8px;
            border: black solid 1px;
        }
        .f2>.card3{
            margin-right: 0;
        }
    </style>
</head>
<body>
<div class="main">
    <div class="f1">
        <div class="left"></div>
        <div class="right"></div>
    </div>
    <div class="f2">
        <div class="left"></div>
        <div class="card"></div>
        <div class="card"></div>
        <div class="card card3"></div>
    </div>
</div>

</body>
</html>